# Maintainer: Bruno Pagani <archange@archlinux.org>
# Contributor: Médéric Boquien <mboquien@free.fr>

pkgname=erfa
pkgver=2.0.0
pkgrel=2
pkgdesc="Essential Routines for Fundamental Astronomy"
arch=(loong64 x86_64)
url="https://github.com/liberfa/erfa"
license=(BSD)
depends=(glibc)
source=(${url}/releases/download/v${pkgver}/${pkgname}-${pkgver}.tar.gz)
sha256sums=('75cb0a2cc1561d24203d9d0e67c21f105e45a70181d57f158e64a46a50ccd515')

build() {
  cd ${pkgname}-${pkgver}
  ./configure --prefix=/usr
}

package() {
  cd ${pkgname}-${pkgver}
  make DESTDIR="${pkgdir}" install
  install -Dm644 LICENSE -t "${pkgdir}"/usr/share/licenses/${pkgname}/
}
